import request from '@/utils/request'

// 查询版税报告一览表列表
export function listHolders(query) {
  return request({
    url: '/system/holders/list',
    method: 'get',
    params: query
  })
}

// 查询版税报告一览表详细
export function getHolders(id) {
  return request({
    url: '/system/holders/' + id,
    method: 'get'
  })
}

// 新增版税报告一览表
export function addHolders(data) {
  return request({
    url: '/system/holders',
    method: 'post',
    data: data
  })
}

// 修改版税报告一览表
export function updateHolders(data) {
  return request({
    url: '/system/holders',
    method: 'put',
    data: data
  })
}

// 删除版税报告一览表
export function delHolders(id) {
  return request({
    url: '/system/holders/' + id,
    method: 'delete'
  })
}
